package com.qf.anli.service.impl;

import com.qf.anli.domain.User;
import com.qf.anli.mapper.UserMapper;
import com.qf.anli.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(User user) {
        return userMapper.findByUsernameAndPassword(user.getUsername(),user.getPassword());
    }
}
